<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{jbqkForm.bundleName}"/>
    <head>
        <title>#{text['jbqkDetail.title']}</title>
        <meta name="heading" content="#{text['jbqkDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="jbqkSearchForm">
<h:form id="jbqkSearchForm" onsubmit="return validateJbqkForm(this)">

<h:messages />

<h:panelGroup styleClass="buttonBar bottom">
    <h:commandButton value="#{text['button.search']}" action="#{jbqkSearchForm.search}" id="search" styleClass="button"/>
</h:panelGroup>
<h:panelGrid columns="6">

    <h:outputLabel styleClass="desc" for="qyqc" value="#{text['jbqk.qyqc']}"/>
    <t:message for="qyqc" styleClass="fieldError"/>
    <h:inputText styleClass="text large" id="qyqc" value="#{jbqkSearchForm.qyqc}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yyzzzch" value="#{text['jbqk.yyzzzch']}"/>
    <t:message for="yyzzzch" styleClass="fieldError"/>
    <h:inputText styleClass="text large" id="yyzzzch" value="#{jbqkSearchForm.yyzzzch}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="hy" value="#{text['hyfl.hyfl']}"/>
    <t:message for="hy" styleClass="fieldError"/>
    <h:selectOneMenu value="#{jbqkSearchForm.hyflId}" id="hy" required="false" styleClass="select">
        <f:selectItems value="#{availableHyfls}"/>
    </h:selectOneMenu>
    <h:outputLabel styleClass="desc" for="ssqy" value="#{text['jbqk.ssqy']}"/>
    <t:message for="ssqy" styleClass="fieldError"/>
    <h:inputText styleClass="text large" id="ssqy" value="#{jbqkSearchForm.ssqy}" required="false" maxlength="20">
    </h:inputText>
</h:panelGrid>

</h:form>

<h:form id="editJbqk">
<t:dataTable id="jbqks" var="jbqk" style="margin-top: 10px"
    value="#{jbqkSearchForm.jbqkList}" rows="25" sortColumn="#{jbqkList.sortColumn}"
    sortAscending="#{jbqkList.ascending}" styleClass="scrollerTable table"
    headerClass="standardTable_Header" rowClasses="standardTable_Row1,standardTable_Row2"
    columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_ColumnCentered">

    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="qyqc" arrow="true">
                <h:outputText value="#{text['jbqk.qyqc']}" />
            </t:commandSortHeader>
        </f:facet>
    	<h:commandLink action="#{jbqkForm.edit}" value="#{jbqk.qyqc}">
            <f:param name="jbqkid" value="#{jbqk.id}"/>
            <f:param name="from" value="list"/>
        </h:commandLink>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="yyzzzch" arrow="true">
                <h:outputText value="#{text['jbqk.yyzzzch']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{jbqk.yyzzzch}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="ssqy" arrow="true">
                <h:outputText value="#{text['jbqk.ssqy']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{jbqk.ssqy}" escape="true"/>
    </t:column>
</t:dataTable>
</h:form>

<v:validatorScript functionName="validateJbqkForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('jbqkSearchForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
